using Net35.Xrm.Sdk;
using System;
using System.Runtime.Serialization;
namespace Net35.Crm.Sdk.Messages
{
	[DataContract(Namespace = "http://schemas.microsoft.com/crm/2011/Contracts")]
	public sealed class SendEmailFromTemplateRequest : OrganizationRequest
	{
		public Guid TemplateId
		{
			get
			{
				if (base.Parameters.Contains("TemplateId"))
				{
					return (Guid)base.Parameters["TemplateId"];
				}
				return default(Guid);
			}
			set
			{
				base.Parameters["TemplateId"] = value;
			}
		}
		public string RegardingType
		{
			get
			{
				if (base.Parameters.Contains("RegardingType"))
				{
					return (string)base.Parameters["RegardingType"];
				}
				return null;
			}
			set
			{
				base.Parameters["RegardingType"] = value;
			}
		}
		public Guid RegardingId
		{
			get
			{
				if (base.Parameters.Contains("RegardingId"))
				{
					return (Guid)base.Parameters["RegardingId"];
				}
				return default(Guid);
			}
			set
			{
				base.Parameters["RegardingId"] = value;
			}
		}
		public Entity Target
		{
			get
			{
				if (base.Parameters.Contains("Target"))
				{
					return (Entity)base.Parameters["Target"];
				}
				return null;
			}
			set
			{
				base.Parameters["Target"] = value;
			}
		}
		public SendEmailFromTemplateRequest()
		{
			base.RequestName = "SendEmailFromTemplate";
			this.TemplateId = default(Guid);
			this.RegardingType = null;
			this.RegardingId = default(Guid);
			this.Target = null;
		}
	}
}
